package com.hb.core.pojo.project.section.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hb.core.pojo.project.section.entity.Inquiry;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * @author yyx
 * @date 2022/5/16
 * @desc 专家询标及回复信息
 */
@Data
@ApiModel(value = "InquiryDTO", description = "专家询标及回复信息")
public class InquiryDTO extends Inquiry {

    @ApiModelProperty(value = "是否回复")
    private Boolean replyFlag;

    @ApiModelProperty(value = "询标回复时间")
    @JsonFormat(shape= JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime replyTime;

    @ApiModelProperty(value = "回复附件ID")
    private Long replyFileId;

    @ApiModelProperty(value = "回复附件名")
    private String replyFileName;

    @ApiModelProperty(value = "投标人及回复信息")
    private List<InquiryReplyDTO> inquiryReplyDTOS;
}